package com.example.administrator.test.personal;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.example.administrator.test.MyBalanceActivity;
import com.example.administrator.test.R;

/**
 * Created by Administrator on 2016/12/1.
 */
public class MyWalletActivity extends AppCompatActivity {
    Intent intent;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_mywallet);
    }
    public void clickMyWallet(View view){
        switch (view.getId()){
            case R.id.wallet:
                intent=new Intent(MyWalletActivity.this,PayMethodActivity.class);
                startActivity(intent);
                break;
            case R.id.rl_mywallet_mybalance:
                intent=new Intent(MyWalletActivity.this,MyBalanceActivity.class);
                startActivity(intent);
                break;
            case R.id.rl_mywallet_mycoupon:
                intent=new Intent(MyWalletActivity.this,MyCouponActivity.class);
                startActivity(intent);
                break;
        }
    }
    public void clickMyWalletBack(View view){
        onBackPressed();
    }
}
